package com.dtagri.fjwlw.ui;

import java.io.Serializable;

















import com.android.nvssdklib.NvssdkAPI;
import com.dtagri.fjwlw.R;
import com.dtagri.fjwlw.bean.tdvideo.VideoInfo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.WindowManager;


/**
 * 【天地伟业】视频注册
 * @author Administrator
 * 2014-02-27
 */
public class VideoRegister extends Activity {
    /** Called when the activity is first created. */

	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.main);
        initVariable(); 
        LoadLib();
    }
    
    private boolean DBInit()
    {
		return true;
    }
    
    private void initVariable()
    {
    	Intent gi = getIntent();
    	VideoInfo sInfo = (VideoInfo)gi.getSerializableExtra("video_param_info");
    	int iface = gi.getIntExtra("video_interface",1);
        Intent intent = new Intent();
		intent.setClass(VideoRegister.this, Show_Video_View.class);
		intent.putExtra("video_param_infos", sInfo);
		intent.putExtra("video_interface",iface);
		intent.putExtra("cur_area_id", 1);
		intent.putExtra("cur_area_name", 2);
		startActivity(intent);   
		finish();
    }
    public void LoadLib() 
    {
//    	String strLibPath = android.os.Environment.getDataDirectory().getAbsolutePath()
//		+ "/data/com.easymobile.show/lib/libnvssdk.so";
    	String strLibPath = android.os.Environment.getDataDirectory().getAbsolutePath()
    			+ "/data/com.dtagri.fjwlw/lib/libnvssdk.so";
    	Log.i("register","strLibPath = "+strLibPath);
    	
    	System.loadLibrary("NvssdkAPI");
    	NvssdkAPI.GetInstance().InitalNvssdk(strLibPath);
    }
}